#include "eventfactory.h"

EventFactory::EventFactory()
{

}

EventFactory::~EventFactory()
{

}

void EventFactory::destroy(Event *p)
{
    if(!p){
        LOG_ERROR() << "Invalid argument.";

        return;
    }

    p->~Event();

    unsigned long *l = (unsigned long *)(p - sizeof(unsigned long));

    m_mp.free(l, *l);
}
